package com.unireport.dbbean;

// Generated 2012-5-2 22:17:44 by Hibernate Tools 3.4.0.CR1

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

/**
 * WebjobRpParamDef generated by hbm2java
 */
@Entity
@Table(name = "WEBJOB_RP_PARAM_DEF", schema = "DATAMANAGER")
@SequenceGenerator(name="seq_webjob_param_id", sequenceName="seq_webjob_param_id",allocationSize=1)
public class WebjobRpParamDef implements java.io.Serializable {

	private int paramId;
	private WebjobRpDef webjobRpDef;
	private String paramCode;
	private String paramName;
	private String paramType;
	private String createSql;
	private String importSql;

	public WebjobRpParamDef() {
	}

	public WebjobRpParamDef(int paramId, WebjobRpDef webjobRpDef,
			String paramCode, String paramType) {
		this.paramId = paramId;
		this.webjobRpDef = webjobRpDef;
		this.paramCode = paramCode;
		this.paramType = paramType;
	}

	public WebjobRpParamDef(int paramId, WebjobRpDef webjobRpDef,
			String paramCode, String paramName, String paramType,
			String createSql, String importSql) {
		this.paramId = paramId;
		this.webjobRpDef = webjobRpDef;
		this.paramCode = paramCode;
		this.paramName = paramName;
		this.paramType = paramType;
		this.createSql = createSql;
		this.importSql = importSql;
	}

	@Id
	@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="seq_webjob_param_id")
	@Column(name = "PARAM_ID", unique = true, nullable = false, precision = 8, scale = 0)
	public int getParamId() {
		return this.paramId;
	}

	public void setParamId(int paramId) {
		this.paramId = paramId;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "RP_ID", nullable = false)
	public WebjobRpDef getWebjobRpDef() {
		return this.webjobRpDef;
	}

	public void setWebjobRpDef(WebjobRpDef webjobRpDef) {
		this.webjobRpDef = webjobRpDef;
	}

	@Column(name = "PARAM_CODE", nullable = false, length = 40)
	public String getParamCode() {
		return this.paramCode;
	}

	public void setParamCode(String paramCode) {
		this.paramCode = paramCode;
	}

	@Column(name = "PARAM_NAME", length = 40)
	public String getParamName() {
		return this.paramName;
	}

	public void setParamName(String paramName) {
		this.paramName = paramName;
	}

	@Column(name = "PARAM_TYPE", nullable = false, length = 20)
	public String getParamType() {
		return this.paramType;
	}

	public void setParamType(String paramType) {
		this.paramType = paramType;
	}

	@Column(name = "CREATE_SQL", length = 0)
	public String getCreateSql() {
		return this.createSql;
	}

	public void setCreateSql(String createSql) {
		this.createSql = createSql;
	}

	@Column(name = "IMPORT_SQL", length = 1000)
	public String getImportSql() {
		return this.importSql;
	}

	public void setImportSql(String importSql) {
		this.importSql = importSql;
	}

}
